import request from '@/utils/request'

// 查询商品列表
export function getProducrList(query) {
  return request({
    url: '/admin/productPackage/getProducrList',
    method: 'get',
    params: query
  })
}

// 查询活动列表
export function getProducrActivityList(query) {
  return request({
    url: '/admin/productPackage/getProducrActivityList',
    method: 'get',
    params: query
  })
}

// 下载资源
export function downloadGoodsSource(query) {
  return request({
    url: '/admin/productPackage/download',
    method: 'get',
    params: query
  })
}

//保存资源路径
export function addProductSource(query) {
  return request({
    url: '/admin/productPackage/addProductSource',
    method: 'post',
    data: query
  })
}

//新增活动
export function addProductActivity(query) {
  return request({
    url: '/admin/productPackage/addProductActivity',
    method: 'post',
    data: query
  })
}


